import request from '@/utils/request'

// 查询wall列表
export function listWall(query) {
  return request({
    url: '/wallpaper/wall/list',
    method: 'get',
    params: query
  })
}

// 查询wall详细
export function getWall(id) {
  return request({
    url: '/wallpaper/wall/' + id,
    method: 'get'
  })
}

// 新增wall
export function addWall(data) {
  return request({
    url: '/wallpaper/wall',
    method: 'post',
    data: data
  })
}

// 修改wall
export function updateWall(data) {
  return request({
    url: '/wallpaper/wall',
    method: 'put',
    data: data
  })
}

// 删除wall
export function delWall(id) {
  return request({
    url: '/wallpaper/wall/' + id,
    method: 'delete'
  })
}
